<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// FastXCMS安装信息
if($configinfo['fastxcmsok'] == 1)
{
	// 获取当前内页广告位
	function getadvbanner()
	{
		global $configinfo;
		
		$moreinfo1 = getjsonarr($configinfo['moduleclass']['class1']['more']);
		$moreinfo2 = getjsonarr($configinfo['moduleclass']['class2']['more']);
		$moreinfo3 = getjsonarr($configinfo['moduleclass']['class3']['more']);
		// 获取语言关联栏目信息
		if($configinfo['columnattrok'] == 1 && $configinfo['langok'] == 1)
		{
			$moreinfo1 = modulelangcolumn($configinfo['moduleclass']['class1'],$configinfo['moduleclass']['class1']['id']);
			$moreinfo2 = modulelangcolumn($configinfo['moduleclass']['class2'],$configinfo['moduleclass']['class2']['id']);
			$moreinfo3 = modulelangcolumn($configinfo['moduleclass']['class3'],$configinfo['moduleclass']['class3']['id']);
		}
		
		$advbanner = "";
		if($moreinfo1['bannerimg'])
		{
			$advbanner = $moreinfo1['bannerimg'];	
		}
		if($moreinfo2['bannerimg'])
		{
			$advbanner = $moreinfo2['bannerimg'];	
		}
		if($moreinfo3['bannerimg'])
		{
			$advbanner = $moreinfo3['bannerimg'];	
		}
		
		return $advbanner;
	}
}
?>